org.eclipse.vtp.desktop.core.actions.util
Interface InternalActionItemContainer

All Known Implementing Classes:
InternalActionSet, InternalActionSetSection, ProvisioningModelActionManager

public interface InternalActionItemContainer

This interface represents sub-menu constructs within a context menu setting. It maintains a set of actions that will be placed into the sub-menu.

Version:
2.0
Author:
Trip Gilman

Method Summary
 boolean addActionItem(InternalActionItem actionItem)
          Adds the given action item to the list of items contained in this sub-menu.
 void fillContextMenu(org.eclipse.jface.action.IMenuManager menuManager)
          Adds this containers actions and child containers to the given menu manager.
 InternalActionItemContainer findContainer(java.util.Stack ids)
          Locates the container with the given set of ids.
 

Method Detail

addActionItem

boolean addActionItem(InternalActionItem actionItem)
Adds the given action item to the list of items contained in this sub-menu.

Parameters:
actionItem - The item to add.
Returns:
true if the action was added, false if another action with the same name is already contained

findContainer

InternalActionItemContainer findContainer(java.util.Stack ids)
Locates the container with the given set of ids. The ids are listed in parent first order. If the current id matches this container, the id is removed and the next id is matched against it's children. If a matching child is found the remaining ids are passed to the child container's implementation of this function.

Parameters:
ids - A Stack of id strings
Returns:
The container with the given id and heritage

fillContextMenu

void fillContextMenu(org.eclipse.jface.action.IMenuManager menuManager)
Adds this containers actions and child containers to the given menu manager. All enabled and disable actions are added. Any action with the absent state are skipped.

Parameters:
menuManager -